package com.canyou.redmine.adapter;

import android.support.annotation.Nullable;

import com.canyou.redmine.R;
import com.canyou.redmine.model.Project;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by user on 2018/1/4.
 */

public class ProjectAdapter extends BaseQuickAdapter<Project, BaseViewHolder> {
    private List<Project> list;

    public ProjectAdapter(int layoutResId, @Nullable List<Project> data) {
        super(layoutResId, data);
        this.list = data;
    }

    @Override
    protected void convert(BaseViewHolder helper, Project item) {
        helper.setText(R.id.tv_project_name,item.getName());
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, int position) {
        super.onBindViewHolder(holder, position);
    }

}
